import request from '@/utils/request'

// 查询课表管理列表
export function listScheduleManagement(query) {
  return request({
    url: '/teaching/scheduleManagement/list',
    method: 'get',
    params: query
  })
}

// 查询课表管理详细
export function getScheduleManagement(id) {
  return request({
    url: '/teaching/scheduleManagement/' + id,
    method: 'get'
  })
}

// 新增课表管理
export function addScheduleManagement(data) {
  return request({
    url: '/teaching/scheduleManagement',
    method: 'post',
    data: data
  })
}

// 修改课表管理
export function updateScheduleManagement(data) {
  return request({
    url: '/teaching/scheduleManagement',
    method: 'put',
    data: data
  })
}

// 删除课表管理
export function delScheduleManagement(id) {
  return request({
    url: '/teaching/scheduleManagement/' + id,
    method: 'delete'
  })
}
